<?php

namespace App\Http\Controllers\Api\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Facades\Services\Admin\UserService;

class UserController extends Controller
{
    /*
    创建用户
     */
    public function create(Request $request){

        UserService::create($request);

        return formatJsonResponse();
    }

    /*
    删除用户
     */
    public function delete(Request $request){

        UserService::delete($request);

        return formatJsonResponse();
    }

    /*
    修改密码
     */
    public function updatePassword(Request $request){

        UserService::updatePassword($request);

        return formatJsonResponse();
    }

    public function updateInfo(Request $request){

        UserService::update($request);

        return formatJsonResponse();
    }
}
